from . import views
from django.urls import path, re_path, include
urlpatterns = [
    path(r'list/', views.HostView.as_view({'get': 'list', 'post': 'create'})),
    path(r'categorys/', views.HostCategoryView.as_view()),
    re_path('host_excel/', views.HostExcelView.as_view()),
    re_path('^file/(?P<pk>\d+)/', views.HostFileView.as_view({'get': 'get_folders','post': 'upload_file', 'delete': 'delete_file'})),


]

